import { createApp } from "vue";
import App from "./App.vue";
import router from "/@/router";
import { createPinia } from "pinia";
import "./styles/index.less";
import "./styles/sidebar.less";

// auto-imports会导致部分样式丢失 目前未找到解决方案 因此先采用全局引入方式
import ElementPlus from "element-plus";
import "element-plus/dist/index.css";
import SvgIcon from "/@/components/SvgIcon/index.vue";

// 引入svg-icon
import "virtual:svg-icons-register";
import "/@/permission";

function bootstrap() {
  const app = createApp(App);
  app.use(router);
  app.use(createPinia());
  app.use(ElementPlus);
  app.component("SvgIcon", SvgIcon);
  app.mount("#app");
}
bootstrap();
